﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using QLNS_BLL;
using QLNS_Public;

namespace QLNS_GiaoDien
{
    public partial class uc_TimKiem_PhongBan : DevExpress.XtraEditors.XtraUserControl
    {
        public uc_TimKiem_PhongBan()
        {
            InitializeComponent();
        }
        TimKiem_BLL timkiem_bll = new TimKiem_BLL();
        PhongBan_Public pb = new PhongBan_Public();
        private void cob_TenPhong_TextChanged(object sender, EventArgs e)
        {
            pb.TenPhong = cob_TenPhong.Text;
            gridControl1.DataSource = timkiem_bll.TimKiem_PhongBan(pb);
        }

        private void cob_TenPhong_Click(object sender, EventArgs e)
        {
            cob_TenPhong_TextChanged(sender,e);
        }
    }
}
